﻿using Gurucore.Framework.DataAccess;
using Gurucore.Framework.DataAccess.Persistence.QueryLanguage;

namespace Gurucore.FrameworkTest.DataAccess
{
	[MappedTable]
	public class User
	{
		public static readonly ColumnOperand ID = new ColumnOperand("User", "Id");
		public static readonly ColumnOperand USERNAME = new ColumnOperand("User", "Username");
		public static readonly ColumnOperand PASSWORD = new ColumnOperand("User", "Password");
		public static readonly ColumnOperand GROUP_ID = new ColumnOperand("User", "GroupId");

		[MappedColumn]
		public virtual int Id { get; set; }

		[MappedColumn]
		public virtual string Username { get; set; }

		[MappedColumn]
		public virtual string Password { get; set; }

		[MappedColumn]
		public virtual int GroupId { get; set; }
	}
}
